// 引入适配
@import "common";
// 根
@nu: 20;

// 小于766版心变化
@media (max-width:766px) {

    // 头部
    nav {
        position: relative !important;
    }

    .banner {
        top: 0px !important;
    }

    // 按钮
    .button {
        display: block !important;
    }

    // 通用导航
    .nav-bar {
        display: none !important;
    }

    // 版心
    .content {
        width: 95%;
        margin-left: auto;
        margin-right: auto;

        .nav-header {
            width: 100%;
            display: flex;
            justify-content: space-between;
        }
    }

    // 内容
    .table {
        display: flex;
        flex-direction: column;

        li {
            width: 100% !important;
            padding-left: 15px !important;
            padding-right: 15px !important;
            box-sizing: border-box;
        }

        li.card-active {
            transform: scale(1) !important;
        }
    }

    // 我们的客服
    .table-client {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;

        li {
            width: (100% / 4);
        }
    }

    // 底部
    .row {
        display: flex;
        flex-wrap: wrap;
        padding-right: 15px;
        padding-left: 5px;
        box-sizing: border-box;

        .itme-list {
            width: 50%;


            p {
                text-align: left !important;
            }
        }
    }

    // 侧边栏
    .side {
        bottom: 55px !important;

        .xs {
            display: none !important;
        }

        .Top {
            background-color: rgba(255, 255, 255, 0.9) !important;
            border-color: transparent !important;
            border-radius: 50% !important;
            background-position: -92px 0px !important;

            &:hover {
                background-position: 0 0 !important;
            }
        }
    }

    // 手机端页脚
    .mob-bottom {
        display: block !important;
    }
}

// 大于768版心变化
@media (min-width:766px) {

    // 按钮
    .button {
        display: none !important;
    }

    // 通用导航
    .nav-bar {
        display: block !important;
    }

    // 版心
    .content {
        width: 750px;
        padding: 0px (15rem / @nu);
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    // 轮播图圆圈
    .bd {
        bottom: 20px !important;
    }

    // 每一个板块的标题
    .title {
        width: 100%;
    }

    // 内容
    .table {
        width: 100%;
        display: flex;

        li {
            width: 25%;
        }
    }

    .card-bottom {
        width: 100%;
    }

    // 美国签证最新资讯
    .section5 {
        .table {
            li {
                width: 50%;
            }
        }
    }

    // 我们的客服
    .table-client {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;

        li {
            width: (100% / 4) !important;
        }
    }

    // 底部
    .row {
        display: flex;
        flex-wrap: wrap;

        .itme-list {
            width: (100% / 6);
        }

        .itme-last {
            width: 33.33333333%;
        }
    }
}

// 大于992版心变化
@media (min-width:992px) {

    // 版心
    .content {
        width: 970px;
        padding: 0px (15rem / @nu);
        margin: 0 auto;
    }

    // 我们的客服
    .table-client {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;

        li {
            width: (100% / 6) !important;
        }
    }

    .itme-last {
        border-right: 2px solid #c1c1c1;
    }
}

// 我们的成绩字体变化
@media (min-width:768px) and (max-width:991px) {
    .run-number {
        font-size: 50px !important;
    }

    .footer-contact {
        h2 {
            padding-left: 0;
            font-size: 22px !important;
        }
    }
}


// 头部
header {
    width: 100%;

    // 头部复写
    nav {
        width: 100%;
        position: fixed;
        right: 0;
        top: 0;
        border-bottom: 2px solid #0ba1e4;
        box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
        z-index: 1000;
        background-color: rgba(255, 255, 255, 0.9);

        // 版心
        .content {
            box-sizing: content-box;
            display: flex;
            padding: 0px (15rem / 20);
            align-items: center;
            justify-content: space-between;

            // 左边
            .nav-header {

                // logo
                .logo {
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    a {
                        line-height: 20px;
                        padding: 0 0 0 15px 0px;

                        img {
                            min-width: 130px;
                        }
                    }
                }

                // 按钮
                .button {
                    display: none;
                    position: relative;
                    margin-right: 15px;
                    padding: 9px 10px;
                    margin-top: 8px !important;
                    margin-bottom: 8px !important;
                    background-color: transparent;
                    background-image: none;
                    border: 1px solid #ddd;
                    border-radius: 4px;
                    cursor: pointer;

                    &:hover {
                        background-color: #ddd;
                    }

                    span {
                        display: block;
                        width: 22px;
                        height: 2px;
                        border-radius: 1px;
                        background-color: #888;

                        &:nth-child(2) {
                            margin-top: 4px;
                        }

                        &:nth-child(3) {
                            margin-top: 4px;
                        }
                    }
                }
            }

            // 右侧导航
            .nav-bar {
                .nav-right {
                    line-height: (15rem /20);
                    margin-right: -15px;
                    display: flex;
                    align-items: center;
                    margin: 0;

                    li {
                        display: block;
                        position: relative;

                        a {
                            position: relative;
                            display: inline-block;
                            color: #777;
                            font-size: 0.3025rem;
                            padding: 16px 24px 16px !important;

                            &:hover {
                                color: #0ba1e4;
                            }
                        }

                        .line-top {
                            width: 20px;
                            position: absolute;
                            border-top: 1px solid #0ba1e4;
                            left: 50%;
                            top: 50px;
                            transform: translateX(-50%);
                        }
                    }
                }
            }
        }
    }
}

// banner轮播图
.banner {
    width: 100%;
    top: (27rem / 20);
    position: relative;
    overflow: hidden;

    .hd {
        width: 100%;
        position: relative;
        overflow: hidden;

        .list {
            display: flex;
            position: relative;
        }
    }

    // 圆圈
    .bd {
        width: 100%;
        height: 10px;
        text-align: center;
        bottom: 10px;
        position: absolute;
        z-index: 15;

        span {
            width: 10px;
            height: 10px;
            margin: 1px;
            border: 1px solid white;
            display: inline-block;
            border-radius: 10px;
            cursor: pointer;
        }
    }
}

// 我们的成绩
.section1 {
    width: 100%;

    .content {
        .sector {
            .table {
                margin-left: auto;
                margin-right: auto;

                li {
                    padding: 0px 15px;
                    text-align: center;

                    .number {
                        span {
                            font-family: "Roboto", Arial, Tahoma, sans-serif;
                            color: #0ba1e4;
                            font-size: 70px;
                        }
                    }

                    h4 {
                        margin: 10px 0px;
                        font-size: 18px;
                        color: #919191;
                    }
                }
            }
        }
    }
}

// 我们的优势
.section2 {
    width: 100%;

    .table {
        li {
            box-sizing: border-box;
            padding: 0px 15px;

            .our-whyus {
                transition: all 0.225s ease-in-out;
                text-align: center;
                background-color: #fafafa;
                border: 1px solid #c1c1c1;
                padding: 10px;

                .iconfont {
                    font-weight: bold;
                    color: #0ba1e4;
                    font-size: 80px;
                    line-height: 1.5em;
                }

                h3 {
                    color: inherit;
                    font-size: 24px;
                    line-height: 1.5em;
                }

                p {
                    margin: 0 0 10px;
                    line-height: 1.5em;
                }
            }

            &:hover .our-whyus {
                background-color: #0ba1e4;
                border: 1px solid #0ba1e4;
                box-shadow: 0 0 20px 0 rgb(45 183 245 / 50%);
                color: #fff;
            }

            &:hover .iconfont {
                color: #fff;
            }
        }
    }
}

// 我们的服务
.section3 {
    .table {
        box-sizing: border-box;
        text-align: center;
        padding: 20px 15px 60px 15px;

        li {
            width: 25%;
            position: relative;
            background-color: #fafafa;
            border: 1px solid #c1c1c1;
            transition: all 0.3s ease-in-out;

            .item-title {
                padding-top: 20px;
                padding-bottom: 20px;
                border-bottom: 1px solid #c1c1c1;

                h4 {
                    font-size: 18px;
                    font-weight: bold;
                    color: #0ba1e4;
                    line-height: 2em;
                }
            }

            .item-content {
                padding-top: 20px;
                padding-bottom: 30px;

                p {
                    margin-bottom: 10px;
                    line-height: 3em;
                }

                a {
                    vertical-align: middle;
                    border-radius: 4px;
                    color: #0ba1e4;
                    text-align: center;
                    border: 1px solid #0ba1e4;
                    padding: 6px 20px;
                    display: inline-block;
                    transition: all 0.225s ease-in-out;

                    &:hover {
                        color: #0ba1e4 !important;
                        background-color: white;
                    }
                }
            }
        }
    }

    .card-bottom {
        text-align: center;

        a {
            color: #0ba1e4;
            border-radius: 4px;
            font-size: 18px;
            padding: 10px 16px;
            transition: all 0.225s ease-in-out;
            border: 1px solid #0ba1e4;
            background-color: none;
            display: inline-block;

            &:hover {
                color: #fff;
                background-color: #0ba1e4;
            }
        }
    }
}

// 客户的鼓励
.section4 {
    .table {
        display: flex;

        li {
            width: (100% / 3);
            display: flex;
            padding-left: 15px;
            padding-right: 15px;
            flex-direction: column;
            padding-top: 30px;
            padding-bottom: 20px;
            box-sizing: border-box;

            .popover {
                height: 190px;

                .top {
                    width: 100%;
                    max-width: 100%;
                    height: 160px;
                    background-color: #f5f5f5;
                    border-radius: 4px;
                    border: 1px solid #34a263;
                    box-shadow: none;
                    z-index: 10;
                    position: relative;
                    display: block;

                    // 三角形
                    .arrow {
                        width: 0;
                        height: 0;
                        left: 50%;
                        bottom: -22px;
                        border-width: 11px;
                        position: absolute;
                        border-color: transparent;
                        border-style: solid;
                        border-top-color: #34a263;
                        transform: translateX(-50%);

                        &::after {
                            content: " ";
                            width: 0;
                            height: 0;
                            bottom: -10px;
                            transform: translateX(-50%);
                            border: 11px solid transparent;
                            border-top-color: #f5f5f5 !important;
                            position: absolute;
                            display: block;
                        }
                    }

                    // 头像
                    .touxiang {
                        width: 100%;
                        height: 50px;
                        position: absolute;
                        top: -26px;
                        margin: 0;
                        left: 0;
                        text-align: center;

                        img {
                            width: 50px;
                            height: 50px;
                            border-radius: 100%;
                        }
                    }

                    // 内容
                    .popover-content {
                        margin: 9% 0 10px;
                        padding: 9px 14px;
                        display: flex;
                        justify-content: space-between;

                        .text {
                            overflow: hidden;
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 5;
                            -webkit-box-orient: vertical;
                            word-wrap: break-word;
                            font-family: "SourceHanSansCN-Light", "Lantinghei SC", "Open Sans", "Hiragino Sans GB", "Microsoft YaHei", "STHeiti-Light", "WenQuanYi Micro Hei", "Arial", "SimSun", "sans-serif";
                        }
                    }

                    .tag {
                        width: 91%;
                        position: absolute;
                        font-size: 12px;
                        bottom: 12px;

                        .bingzheng {
                            background-color: #aaa;
                            color: #fff;
                            padding: .5% 3.5%;
                            max-width: 50%;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                            font-family: "SourceHanSansCN-Light", "Lantinghei SC", "Open Sans", "Hiragino Sans GB", "Microsoft YaHei", "STHeiti-Light", "WenQuanYi Micro Hei", "Arial", "SimSun", "sans-serif";
                        }

                        .address {
                            max-width: 50%;
                            float: right;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;

                            .icon {
                                background-image: url(http://www.clantrip.com/static/images/icons/position-icon.svg);
                                background-repeat: no-repeat;
                                background-size: 10px 10px;
                                width: 10px;
                                height: 10px;
                                float: left;
                                margin-top: 3px;
                                margin-right: 4px;
                            }

                            .tit {
                                color: #aaa;
                                font-family: "SourceHanSansCN-Light", "Lantinghei SC", "Open Sans", "Hiragino Sans GB", "Microsoft YaHei", "STHeiti-Light", "WenQuanYi Micro Hei", "Arial", "SimSun", "sans-serif";
                            }
                        }
                    }
                }
            }

            .glly-icon {
                width: 70px;
                height: 70px;
                margin-left: auto;
                margin-right: auto;
                background: url("http://www.clantrip.com/static/images/icons/yhgl-icon.svg") no-repeat;
                background-size: 70px 70px;
            }
        }
    }
}

// 美国签证最新资讯
.section5 {
    .table {
        display: flex;
        flex-wrap: wrap;

        li {
            overflow: hidden;
            padding: 20px 0 0 20px;
            box-sizing: border-box;

            .media-left {
                display: table-cell;
                vertical-align: top;
                padding-right: 10px;

                a {
                    width: 140px;
                    height: 100px;
                    border-radius: 4px;
                    padding: 4px;
                    display: block;
                    border: 1px solid #ddd;
                    transition: all.2s ease-in-out;

                    img {
                        width: 100%;
                        max-width: 100%;
                        height: 100px;
                        display: block;
                        margin-left: auto;
                        margin-right: auto;
                        object-fit: cover;
                    }

                    &:hover {
                        border: 1px solid #337ab7;
                    }
                }
            }

            .media-right {
                width: 10000px;
                overflow: hidden;
                display: table-cell;
                vertical-align: top;
                padding: 5px 0px;

                a {
                    color: #337ab7;

                    .media-heading {
                        margin-bottom: 5px;
                        color: #0ba1e4;
                        // height: 19px;
                        font-size: 18px;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        display: -webkit-box;
                        -webkit-line-clamp: 1;
                        -webkit-box-orient: vertical;
                        word-wrap: break-word;

                        &:hover {
                            font-weight: bold;
                        }
                    }
                }

                .dynamic-li {
                    color: #999;
                    padding: 2px 0;
                    font-size: 12px;
                }

                p {
                    color: #919191;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    word-wrap: break-word;
                    line-height: 1.5em;
                    height: 3em;
                    overflow: hidden;
                    margin-bottom: 0;
                    font-size: 12px;
                }

                .title-li {
                    color: #999;
                    padding: 2px 0;
                    font-size: 12px;
                    display: flex;
                    justify-content: space-between;

                    a {
                        display: inline-block;
                        font-weight: 400;
                        color: #999;
                        margin-right: 10px;

                        &:hover {
                            color: #f93;
                        }
                    }
                }
            }
        }
    }
}

// 我们的客户
.section6 {
    .table-client {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        flex-wrap: wrap;

        li {
            width: (100% / 3);
            padding-left: 15px;
            padding-right: 15px;
            box-sizing: border-box;

            .client-logo {
                text-align: center;
                border: 1px solid #c1c1c1;
                margin: 20px auto;
                overflow: hidden;
                transition: all 0.3s ease-in-out;

                img {
                    max-width: 100%;
                    height: auto;
                    display: block;
                    margin-left: auto;
                    margin-right: auto;
                    filter: grayscale(100%);
                    transition: all 0.3s ease-in-out;
                }

                &:hover {
                    background-color: #fafafa;
                    border: 1px solid #0ba1e4;
                    box-shadow: 0 0 10px 0 rgb(45 183 245 / 50%);
                }

                &:hover img {
                    filter: none;
                }
            }
        }
    }
}

// 免费咨询
.concat-banner {
    overflow: hidden;
    position: relative;
    background: -webkit-linear-gradient(top, #0076d1, #5db8ff);

    .waves {
        height: 258px;
        display: inline-block;
        position: absolute;
    }

    .concat-banner-box {
        margin-top: 30px;
        margin-bottom: 40px;
        text-align: center;

        h2 {
            display: block;
            max-width: 10em;
            margin: 0px auto;
            line-height: 2em;
            border-bottom: 2px solid #fff;
            color: #f5f5f5;
        }

        h4 {
            margin: 10px 0px;
            color: #f1f1f1;
        }

        a {
            border-radius: 6px;
            border: 1px solid white;
            color: white;
            margin: 20px 0px 0px;
            font-size: 24px;
            padding: 10px 30px;
            display: inline-block;
            transition: all 0.225s ease-in-out;
            position: relative;
            z-index: 11;

            &:hover {
                color: #0ba1e4;
                background-color: white;
            }
        }
    }
}

// 底部
footer {
    background-color: #363636;

    .row {
        display: flex;

        .itme-list {
            height: 160px;
            margin-top: 40px;
            margin-bottom: 40px;
            padding-left: 1em;
            border-left: 2px solid #c1c1c1;
            overflow: hidden;
            box-sizing: border-box;

            .footer-list {
                h4 {
                    margin: 10px 0px;
                    font-size: 18px;
                    color: #f5f5f5;
                }

                ul {
                    margin: 25px 0 0 0;
                    padding: 0;
                    list-style: none;

                    li {
                        a {
                            color: #f5f5f5;
                            line-height: 2.5em;

                            &:hover {
                                text-decoration: underline;
                            }
                        }
                    }
                }
            }

            // 微信
            .footer-wechat {
                img {
                    max-height: 132px;
                    display: block;
                    max-width: 100%;
                    height: auto;
                }

                p {
                    margin-bottom: 10px;
                    text-align: center;
                    color: #f5f5f5;
                    line-height: 2.5em;
                }
            }

            .footer-contact {
                h2 {
                    margin: 0;
                    display: block;
                    color: #ffffff;
                    line-height: 52px;

                    img {
                        width: 40px;
                        height: 40px;
                        margin-top: -6px;
                        margin-right: 10px;
                    }
                }
            }
        }
    }
}

// 底部 bottom
.copyright {
    height: 1.8rem;
    margin-top: -0.25rem;
    position: relative;
    background-color: #666;

    .col {
        p {
            text-align: center;
            margin: 10px;
            line-height: 40px;
            color: #fafafa;

            a {
                color: #fafafa;
            }
        }

        .texte {
            width: 300px;
            height: 20px;
            line-height: 20px;
            margin: 0 auto;
            text-align: center;

            img {
                display: inline-block;
            }

            span {
                margin-left: 5px;
                color: #fafafa;
                margin-bottom: 5px;
            }
        }
    }
}

// 手机端页脚
.mob-bottom {
    width: 100%;
    display: none;
    text-align: center;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    bottom: 0;
    border-top: 2px solid #0ba1e4;
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);

    ul {
        display: flex;

        li {
            width: 25%;
            // padding-left: 15px;
            // padding-right: 15px;

            a {
                display: block;
                padding-top: 5px;
                padding-bottom: 2px;
                color: #616161;
                text-align: center;
                line-height: 1.5em;
                font-size: 12px;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: column;

                img {
                    max-width: 28px;
                    display: block;
                }
            }
        }
    }
}